home *** CD-ROM | disk | FTP | other *** search
-
-
- HINTS & TIPS
-
-
- PROGRAMMING TIP: VTAB Commands for
- the COMMODORE 64.
-
-
- Most other computers allow for a
-
- VTAB command which the C64's BASIC
-
- doesn't support. However,the
-
- following programming tip allows you
-
- to accomplish the same thing.
-
-
- Just include the following somewhere
-
- in the beginning of your program and
-
- you can dispense with the many cursor
-
- control codes:
-
- 10 DIM VTAB$(24)
- 20 VTAB$(0)="(HOME)"
- 30 FOR Y=1 TO 24
- 40 VTAB$(Y)=VTAB$(Y-1)+"(CSR DWN)"
- 50 NEXTY
-
- For horizontal tabs, use the TAB(x)
-
- or POS(x) command with the VTAB$(y).
-
-
- EXAMPLE: To place an object/phrase at
-
- screen location 10,20 (10 down/20
-
- across), use:
-
- PRINTVTAB$(10)TAB(20)"phrase"
-
-
- To place an item on screen line 25,
-
- the above must end with a semi-colon,
-
- otherwise the entire screen will
-
- scroll up one line.
-
- EXAMPLE:
-
- PRINTVTAB$(24)"phrase";
-
- ---------< end of article >----------
-
-
-